package com.xy.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class IndexController {


    @RequestMapping("online")
    @ResponseBody
    public String online() {
        return "当前在线人数：1人";
    }
}